import { RouteRecordRaw } from "vue-router"

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/index", // 入口主页面
    name: "IndexPage",
    component: () => import("@/pages/taskList/taskList"),
  },
  {
    path: "/403",
    name: "403",
    component: () => import("@/pages/error/403.vue"),
  },
  {
    path: "/418",
    name: "418",
    component: () => import("@/pages/error/418.vue"),
  },
  {
    path: "/500",
    name: "500",
    component: () => import("@/pages/error/500.vue"),
  },
  {
    path: "/404",
    name: "404",
    component: () => import("@/pages/error/404.vue"),
  },
  {
    path: "/:pathMatch(.*)*", // 404页面
    redirect: "/404",
  },
]

export default routes
